package com.hpsk.common;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author huangwang2832511019
 */
@Data
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
public class PageCommon implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "每页条数")
    @Builder.Default
    private int size = 20;

    @Schema(description = "当前页")
    private int page = 1;
}
